package org.example.k8s_cloudplatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.k8s_cloudplatform.entity.PodAccess;

import java.util.List;

public interface PodAccessMapper extends BaseMapper<PodAccess> {

    @Select("SELECT userid " +
            "FROM podaccess " +
            "WHERE dockerid=#{dockerID}")
    List<Integer> selectUserIDByDockerID(@Param("dockerID")Integer dockerID);
}

